var showListItemListMenu = function(element){
	
		var option = initRightMenu(element);
		
		var wsLabel = dojo.create("div", {
			innerHTML: "Specify the Web Service URL for retrive data. Data must be an array of Json Object and in every object must be only one attribute that has the name of the label.",
			style: "padding-top: 10px; padding-bottom: 10px; font-size: 13px; color: #aaaaaa;",
			align: "left",
		});
		
		var wsInput = dojo.create("input",{
			type: "text", 
			id: wsInput+elementsIdCounter, 
			value: "http://localhost:8282/GUIEngine/rest/ws/",
			
		});
		elementsIdCounter++;
		
		var wsAddButton = dojo.create("button", {
			innerHTML: "Save URL",
			onclick: function(){
				
				addAttributeToElementInGUIDescriptor(GUIDescriptor, "wsURL", wsInput.value, element.id);
				addAttributeToElementInGUIDescriptor(GUIDescriptor, "wsSource", dojo.byId("wsSourceSelector").value, element.id);
			}
		});
		
		var wsParameter = dojo.create("span", {
			innerHTML: "This item use a parameter to retrieve the list of elements.",
			style: "margin-top: 10px; margin-bottom: 10px; font-size: 13px; color: #aaaaaa;",
			
		});
		
		var checkboxParamenter = dojo.create("input", {
			type: "checkbox",	
			style: "margin-top: 10px;",
			onchange: function(){
				
				if(this.checked){
					dojo.setStyle(dojo.byId("wsSourceLabel"), "display", "inline");
					dojo.setStyle(dojo.byId("wsSourceSelector"), "display", "inline");
				}else{
					dojo.setStyle(dojo.byId("wsSourceLabel"), "display", "none");
					dojo.setStyle(dojo.byId("wsSourceSelector"), "display", "none");
				}
			}
		});
		
		var wsSourceLabel = dojo.create("div", {
			id: "wsSourceLabel",
			innerHTML: "Use this item as source of information:",
			style: "margin-top: 10px; margin-bottom: 10px; font-size: 13px; color: #aaaaaa; display: none;",
			
		});
		
		var wsSourceSelector = dojo.create("select", {
			id: "wsSourceSelector",
			style: "margin-bottom: 10px; font-size: 13px; display: none;",
		});
		
		var listItemArray = getChildrenElement(GUIDescriptor, dojo.byId(element.id).parentNode.id);
		
		var wsSourceOption = dojo.create("option", {});
		wsSourceSelector.appendChild(wsSourceOption);
		for(var i=0; i<listItemArray.length; i++){
			var wsSourceOption = dojo.create("option", {value: listItemArray[i].id, innerHTML: listItemArray[i].attributes.label});
			wsSourceSelector.appendChild(wsSourceOption);
		}
		
		var connectToWS = dojo.create("button",{
			innerHTML: "Connect item to WS",
			onclick: function(){

				var wsCallback = function(data){
					
					var firstTime = true;
					var jsonArray = dojo.fromJson(data);
					
					var speenerWheelLabels = new Array();
					for(var i = 0; i<jsonArray.length; i++){
						speenerWheelLabels.push(jsonArray[i].value);
					}				
					
					if(dojo.byId("overlayDOM_"+element.id)){
						dijit.byId("overlayDOM_"+element.id).destroyRecursive(false);
						dijit.byId("spinnerWheelDOM_"+element.id).destroyRecursive(false);
						dojo.disconnect(connection);
						firstTime = false;
					} 
					
						var overlayDOM = dojo.create("div",{id: "overlayDOM_"+element.id});
						var headingDOM = dojo.create("h1",{});
						var toolbarButtonDOM = dojo.create("div",{});
						var spinnerWheelDOM = dojo.create("div",{id: "spinnerWheelDOM_"+element.id});
						var spinnerWheelSlotDOM = dojo.create("div", {id: "spinnerWheelSlotDOM_"+element.id});
						
						overlayDOM.appendChild(headingDOM);
						headingDOM.appendChild(toolbarButtonDOM);
						overlayDOM.appendChild(spinnerWheelDOM);
						spinnerWheelDOM.appendChild(spinnerWheelSlotDOM);
						dojo.byId("View"+pageSelector.value).appendChild(overlayDOM);
						
						var overlayWidget = new dojox.mobile.Overlay({},overlayDOM);
						var headingWidget = new dojox.mobile.Heading({label: "SpinWheel"},headingDOM);
						headingWidget.startup();
						
						var toolbarButtonWidget = new dojox.mobile.ToolBarButton({
							label: "Done",  
							onClick: function(){ 
								overlayWidget.hide();
								dijit.byId(element.id).rightTextNode.innerHTML = spinnerWheelSlotWidget.getValue();
								dojo.publish("loadWS/"+element.id, spinnerWheelSlotWidget.getValue());
							} 
						}, toolbarButtonDOM);
				
						toolbarButtonWidget.startup();
						
						var spinnerWheel = new dojox.mobile.SpinWheel({},spinnerWheelDOM);
						
						var spinnerWheelSlotWidget = new dojox.mobile.SpinWheelSlot({
							labels: speenerWheelLabels,
						    style: "text-align:center; width: 100%",
							}, spinnerWheelSlotDOM);					
	 
						var showSpeenerWheel = function(){
							dijit.byId("overlayDOM_"+element.id).show();
						};
						
						spinnerWheel.startup();
						
						if(firstTime){
							dijit.byId(element.id).clickable = true;
							dijit.byId(element.id).startup();
							var connection = dijit.byId(element.id).connect(dijit.byId(element.id), "onClick", showSpeenerWheel);
						}
						
				};
				
				var wsURL = wsInput.value;
				
				if(!checkboxParamenter.checked){
					wsGet(wsURL, wsCallback);
				}else{
					dojo.subscribe("loadWS/"+dojo.byId('wsSourceSelector').value, this, function(data){wsGet(wsURL+"/"+data, wsCallback);} );
				}
			}
		});
		
		option.appendChild(checkboxParamenter);
		option.appendChild(wsParameter);
		
		option.appendChild(wsSourceLabel);
		option.appendChild(wsSourceSelector);
		
		option.appendChild(wsLabel);
		option.appendChild(wsInput);
		option.appendChild(wsAddButton);
		
		option.appendChild(connectToWS);
 		
 	};